package com.datang.petstore.service;


import com.datang.petstore.entity.UserInfo;
import com.datang.petstore.model.SummaryOpenSourceResponse;
import com.datang.petstore.model.SummaryUserAgeResponse;
import com.datang.petstore.model.SummaryUserSexResponse;
import com.datang.petstore.model.getUserLoginSummaryResponse;
import com.github.pagehelper.PageInfo;

import java.util.List;

/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-10-02 15:09
 * @notify 用户账号相关接口
 * @version 1.0
 */
public interface UserService {
    public UserInfo loginUserInfo(String openId, String openSource);

    public UserInfo getUserInfo(String userId);

    public List<SummaryUserSexResponse> getSummaryUserSex();

    public List<SummaryUserAgeResponse> getSummaryUserAge();

    public List<SummaryOpenSourceResponse> getSummaryOpenSource();

    public List<getUserLoginSummaryResponse> getUserLoginSummary();

    public PageInfo getUserInfoList(PageInfo page);

    public void updateUserInfo(UserInfo userInfo);
}
